﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02001515 RID: 5397
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class WorkbenchEnhanceBuffTargetInfo : IMessage<WorkbenchEnhanceBuffTargetInfo>, IMessage, IEquatable<WorkbenchEnhanceBuffTargetInfo>, IDeepCloneable<WorkbenchEnhanceBuffTargetInfo>, IBufferMessage
	{
		// Token: 0x170043F5 RID: 17397
		// (get) Token: 0x0600F17D RID: 61821 RVA: 0x002849B1 File Offset: 0x00282BB1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<WorkbenchEnhanceBuffTargetInfo> Parser
		{
			get
			{
				return WorkbenchEnhanceBuffTargetInfo._parser;
			}
		}

		// Token: 0x170043F6 RID: 17398
		// (get) Token: 0x0600F17E RID: 61822 RVA: 0x002849B8 File Offset: 0x00282BB8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return WorkbenchEnhanceBuffTargetInfoReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170043F7 RID: 17399
		// (get) Token: 0x0600F17F RID: 61823 RVA: 0x002849CA File Offset: 0x00282BCA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return WorkbenchEnhanceBuffTargetInfo.Descriptor;
			}
		}

		// Token: 0x0600F180 RID: 61824 RVA: 0x002849D1 File Offset: 0x00282BD1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public WorkbenchEnhanceBuffTargetInfo()
		{
		}

		// Token: 0x0600F181 RID: 61825 RVA: 0x002849D9 File Offset: 0x00282BD9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public WorkbenchEnhanceBuffTargetInfo(WorkbenchEnhanceBuffTargetInfo other) : this()
		{
			this.targetBuffId_ = other.targetBuffId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600F182 RID: 61826 RVA: 0x002849FE File Offset: 0x00282BFE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public WorkbenchEnhanceBuffTargetInfo Clone()
		{
			return new WorkbenchEnhanceBuffTargetInfo(this);
		}

		// Token: 0x170043F8 RID: 17400
		// (get) Token: 0x0600F183 RID: 61827 RVA: 0x00284A06 File Offset: 0x00282C06
		// (set) Token: 0x0600F184 RID: 61828 RVA: 0x00284A0E File Offset: 0x00282C0E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint TargetBuffId
		{
			get
			{
				return this.targetBuffId_;
			}
			set
			{
				this.targetBuffId_ = value;
			}
		}

		// Token: 0x0600F185 RID: 61829 RVA: 0x00284A17 File Offset: 0x00282C17
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as WorkbenchEnhanceBuffTargetInfo);
		}

		// Token: 0x0600F186 RID: 61830 RVA: 0x00284A25 File Offset: 0x00282C25
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(WorkbenchEnhanceBuffTargetInfo other)
		{
			return other != null && (other == this || (this.TargetBuffId == other.TargetBuffId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600F187 RID: 61831 RVA: 0x00284A54 File Offset: 0x00282C54
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.TargetBuffId != 0U)
			{
				num ^= this.TargetBuffId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600F188 RID: 61832 RVA: 0x00284A93 File Offset: 0x00282C93
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600F189 RID: 61833 RVA: 0x00284A9B File Offset: 0x00282C9B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600F18A RID: 61834 RVA: 0x00284AA4 File Offset: 0x00282CA4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.TargetBuffId != 0U)
			{
				output.WriteRawTag(104);
				output.WriteUInt32(this.TargetBuffId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600F18B RID: 61835 RVA: 0x00284AD8 File Offset: 0x00282CD8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.TargetBuffId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.TargetBuffId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600F18C RID: 61836 RVA: 0x00284B16 File Offset: 0x00282D16
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(WorkbenchEnhanceBuffTargetInfo other)
		{
			if (other == null)
			{
				return;
			}
			if (other.TargetBuffId != 0U)
			{
				this.TargetBuffId = other.TargetBuffId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600F18D RID: 61837 RVA: 0x00284B47 File Offset: 0x00282D47
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600F18E RID: 61838 RVA: 0x00284B50 File Offset: 0x00282D50
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 104U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					this.TargetBuffId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04005F53 RID: 24403
		private static readonly MessageParser<WorkbenchEnhanceBuffTargetInfo> _parser = new MessageParser<WorkbenchEnhanceBuffTargetInfo>(() => new WorkbenchEnhanceBuffTargetInfo());

		// Token: 0x04005F54 RID: 24404
		private UnknownFieldSet _unknownFields;

		// Token: 0x04005F55 RID: 24405
		public const int TargetBuffIdFieldNumber = 13;

		// Token: 0x04005F56 RID: 24406
		private uint targetBuffId_;
	}
}
